]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Export showScreen*UI() functions
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Aug 2023 14:24:07 +0000 (16:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 9 Aug 2023 15:22:55 +0000 (15:22 +0000)
showScreenshotUI() is needed by the system action, and
showScreenRecordingUI() is conceptually so similar that
it would be odd to export one and not the other.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6885

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2877>

js/ui/screenshot.js

index 48a355d2c3e216a511d12bec125c70149b6be6c1..852ec94e73d37d4773f3741b3f947906b21a1065 100644 (file)
@@ -2269,7 +2269,7 @@ async function captureScreenshot(texture, geometry, scale, cursor) {
 /**
  * Shows the screenshot UI.
  */
-function showScreenshotUI() {
+export function showScreenshotUI() {
     Main.screenshotUI.open().catch(err => {
         logError(err, 'Error opening the screenshot UI');
     });
@@ -2278,7 +2278,7 @@ function showScreenshotUI() {
 /**
  * Shows the screen recording UI.
  */
-function showScreenRecordingUI() {
+export function showScreenRecordingUI() {
     Main.screenshotUI.open(UIMode.SCREENCAST).catch(err => {
         logError(err, 'Error opening the screenshot UI');
     });